<%--
  Created by IntelliJ IDEA.
  User: wangchao
  Date: 2007-7-22
  Time: 14:55:43
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/common/taglib.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk">
    <link href="http://images.5d6d.com/orig/admincp/admincp.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="http://images.5d6d.com/orig/javascript/common.js"></script>
    <script src="http://images.5d6d.com/orig/javascript/iframe.js" type="text/javascript"></script>
    <script language="JavaScript">
        function checkalloption(form, value) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.value == value && e.type == 'radio' && e.disabled != true) {
                    e.checked = true;
                }
            }
        }

        function checkallvalue(form, value, checkall) {
            var checkall = checkall ? checkall : 'chkall';
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.type == 'checkbox' && e.value == value) {
                    e.checked = form.elements[checkall].checked;
                }
            }
        }

        function zoomtextarea(objname, zoom) {
            zoomsize = zoom ? 10 : -10;
            obj = $(objname);
            if (obj.rows + zoomsize > 0 && obj.cols + zoomsize * 3 > 0) {
                obj.rows += zoomsize;
                obj.cols += zoomsize * 3;
            }
        }

        function redirect(url) {
            window.location.replace(url);
        }

        var collapsed = getcookie('CM2_collapse');
        function collapse_change(menucount) {
            if ($('menu_' + menucount).style.display == 'none') {
                $('menu_' + menucount).style.display = '';
                collapsed = collapsed.replace('[' + menucount + ']', '');
                $('menuimg_' + menucount).src = 'http://images.5d6d.com/orig/admincp/menu_reduce.gif';
            } else {
                $('menu_' + menucount).style.display = 'none';
                collapsed += '[' + menucount + ']';
                $('menuimg_' + menucount).src = 'http://images.5d6d.com/orig/admincp/menu_add.gif';
            }
            setcookie('CM2_collapse', collapsed, 2592000);
        }
    </script>
</head>

<body leftmargin="10" topmargin="10">
<table width="100%" border="0" cellpadding="2" cellspacing="6">
    <tr>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
                <tr>
                    <td><a href="#"
                           onClick="parent.menu.location='admincp.php?action=menu'; parent.main.location='admincp.php?action=home';return false;">系统设置首页</a>&nbsp;&raquo;&nbsp;编辑用户组
                    </td>
                </tr>
            </table>
            <br/>
            <script src="http://images.5d6d.com/orig/javascript/calendar.js" type="text/javascript"></script>
            <s:form method="post" action="${ctx}/admin/SetUserGroup.do">
                <input type="hidden" name="formhash" value="6299bd16">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
                    <tr class="header">
                        <td colspan="2">编辑用户组 - ${actionBean.user.nickname}</td>
                    </tr>
                    <tr class="altbg1">
                        <td>
                            <table cellspacing="0" cellpadding="10" width="100%" align="center">
                                <tr>
                                    <td width="35%" valign="top">

                                        <table width="100%" border="0" cellpadding="0" cellspacing="0"
                                               class="tableborder">
                                            <tr class="header">
                                                <td>用户组</td>
                                                <td>所属管理组类别</td>
                                            </tr>
                                            <tr>
                                                <td class="category" colspan="2"><span class="bold">系统用户组</span></td>
                                            </tr>
                                            <c:forEach items="${actionBean.userGroupList}" var="item">
                                            <tr class="altbg2">
                                                <td><s:radio class="radio" name="user.groupId" value="${item.id}" checked="${actionBean.user.groupId}"/>${item.title}
                                                </td>
                                                <td>${item.title}</td>
                                            </tr>
                                            </c:forEach>
                                        </table>
                                        <s:hidden name="user.id" value="${actionBean.user.id}"/>
                                         <br><br>
                                        <center><input class="button" type="submit" name="setUserGroup" value="提 交">
                                        </center>
                                    </td>

                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </s:form>
        </td>
    </tr>
</table>
<br><br>

</body>
</html>
